package com.gxa.learning.pc.service;

import com.gxa.learning.core.exception.BusinessException;
import com.gxa.learning.core.pojo.Project;
import com.gxa.learning.core.pojo.ProjectDetails;
import com.gxa.learning.core.service.BaseService;

import java.util.List;
import java.util.Map;

public interface ProjectDetailsService extends BaseService<ProjectDetails> {
    /**
     * 添加一个项目
     */
    Integer addDetailsAndProject(ProjectDetails projectDetails) throws BusinessException;

    /**
     * 添加一个项目
     */
    void updateDetailsAndProject(ProjectDetails projectDetails) throws BusinessException;

    /**
     * 获取一个培训项目的详情
     */
    ProjectDetails getProjectDetails(Long pid) throws BusinessException;

    /**
     * 获取对应状态的
     */
    List<Map<String, Object>> getTypeBy(String status) throws BusinessException;

    /**
     * 获取所有证书
     */
    List<Map<String, Object>> getCertificates();

    /**
     *根据typeid获取所有的培训项目
     */
    List<ProjectDetails> getByType(Long tid) throws BusinessException;

    /**
     *根据id获取培训项目
     */
    ProjectDetails getById(Long id) throws BusinessException;
}
